Repository navigation
Conversation
Transcribed from the vendored Sail Arm model (Armv9.4-A, rems-project/sail-arm 5416ef6b), citing the Sail function for every definition: the machine state (X0-X30, SP_EL0, PC, NZCV, V0-V31, memory as a partial map), the semantics of each instruction of the subset as one step, and the canonical 32-bit encoding with the field values the subset admits. The subset: ADD/ADDS/SUB/SUBS (shifted register, immediate), MADD/MSUB, SDIV/UDIV, AND/ORR/EOR/ANDS (shifted register), LSLV/LSRV/ASRV, SBFM/UBFM, MOVZ/MOVK, CSEL/CSINC/CSINV/CSNEG, LDR/STR of W, X and D registers with an unsigned scaled immediate or a register offset, B, B.cond, CBZ/CBNZ, RET, and scalar double FADD/FSUB/FMUL/FDIV/FSQRT/FMOV/FABS/FNEG/FCMP, FMOV between X and D, SCVTF and FCVTZS. 32- and 64-bit forms. FPCR is fixed at 0 (round to nearest even, no flush to zero, no default NaN, no FEAT_AFP behaviour, no traps); every modelling choice is listed in the header. Floating point is exact, FSQRT included (a Real is a rational or the square root of one). The crate stays at tier 0. Verus: 11 verified, 0 errors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
contract.rs states what the encoder and decoder must be proven to meet, in terms of spec.rs: the encoder emits only the canonical word of a valid instruction; the decoder returns Some only for a canonical word and None only when no valid instruction encodes to it. canonical_injective and encode_fits are stated, to be proven with the implementation. api.rs is the body-less trait A64Codec carrying them, so Verus accepts it with no escape hatch. No implementation; the crate stays at tier 0. Verus: 11 verified, 0 errors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
atiernan
had a problem deploying
to
full-verification
November 17, 2026 12:27 — with
GitHub Actions
Error
atiernan
changed the base branch from
claude/jit-isa-sources
to
claude/x64-spec
November 17, 2026 13:11
atiernan
temporarily deployed
to
full-verification
November 17, 2026 13:22 — with
GitHub Actions
Inactive
CI's proof job requires a mutations.json for every crate Verus checks. Three mutations (AddWithCarry's carry inverted, its V flag dropped, B.cond's imm19 at bit 4), each killed by an existing proven example. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
atiernan
had a problem deploying
to
full-verification
November 17, 2026 21:15 — with
GitHub Actions
Error
atiernan
temporarily deployed
to
full-verification
November 18, 2026 13:38 — with
GitHub Actions
Inactive
Both add-with-carry certificates "did not build" in CI: compute_only left `pow(2, 32)` unevaluated, because vstd's `pow` (under `pow2`) is `#[verifier::opaque]`. The certificates now list it in `reveal`, which mutate.rs provides for opaque items a witness evaluates through. Locally (Verus 0.2026.10.04): 11 verified, 0 errors; 3 mutations, 3 killed by a theorem with certificates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
atiernan
temporarily deployed
to
full-verification
November 20, 2026 19:50 — with
GitHub Actions
Inactive
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
JIT plan item J.4, first half:
clazel-a64's primary spec, transcribed from the vendored Sail Arm model only, plus the contracts for the encoder and decoder (rule 3). There is no implementation yet, and the crate stays at tier 0.Stacked on #179, which holds the sources. Merge that PR first, or retarget this one afterwards.
What's here
src/spec.rs: about 2,400 lines. Every definition cites its Sail decode or execute function and thev8_base.sailhelper it uses. All instructions come in 64- and 32-bit forms.Realis a rational or the square root of one, so FSQRT is the exact correctly rounded square root.src/examples.rs: 26 encodings checked against the usual assembler words, plus AddWithCarry and ConditionHolds cases.src/contract.rsandsrc/api.rs: the encoder and decoder contracts, on a body-less trait with no escape hatch. They work on 32-bit words:encode_instr(&Instr) -> u32anddecode_instr(u32) -> Option<Instr>.For the spec reviewer, first
valid_instr:canonical_injectiveandencode_fits. They get proven with the implementation.For the hardware tests to settle
Left out
Not vendored
Sail's standard library (
arith.sail,vector_dec.sail,real.sailfrom rems-project/saillib/), which defines UInt/SInt, the shifts,floorandsqrt. The spec uses their standard meaning and says so in its header. No other Sail Arm file is needed.Verification
verification results:: 11 verified, 0 errors. That is the example proofs; spec fns and the body-less trait add nothing to the count.InstrandRealenums. They look like the field accessors Verus generates. They don't appear in the normal build.cargo xtask check: STATIC CHECKS PASSED. Build, clippy-D warnings, rustfmt andcargo test -p clazel-a64are clean.cargo xtask verify --changedwas not run, because thevstddependency changesCargo.lock. CI's full verification is the check, and its proof jobs need approval.🤖 Generated with Claude Code